#!/usr/bin/env python

from distutils.core import setup,Extension
import os
import glob

#i couldn't get swig to compile c++ files...
os.system('cp '+os.path.join('Main','robotsim.py')+' .')
os.system('swig -python -c++ '+os.path.join('Main','collide.i'))

subdirs = ['Modeling','Simulation','Xml','View','Main']
sourcefiles = []
for s in subdirs:
    sourcefiles += glob.glob(os.path.join(s,'*.cpp'))
sourcefiles +=glob.glob(os.path.join('Main','*.cxx'))

swigOpts = ['-c++']
includeDirs = ['KrisLibrary','ode-0.11.1/include','/usr/include','.'] #'tinyxml','.']

setup(name='Robot Extension',
      version='1.0',
      description='Robotics extension module',
      author='Kris Hauser',
      author_email='hauserk@indiana.edu',
      url='http://code.google.com/p/pytamp/',
      ext_modules=[Extension('_robotsim',
                             sourcefiles,
                             include_dirs=includeDirs,
                             language='c++')],
      py_modules=['robotsim.py']
     )

